
* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  font-size: 16px;
  margin: 0;
  color: #333;
}

ul {
  margin: 0;
  padding-left: 0;
}

ul, li {
  list-style: none;
}

input, textarea {
  outline: none;
}

textarea {
  padding: 0;
  border: 0;
  resize: none;
}


a {
  color: #333;
  text-decoration: none;
}

p {
  margin: 0;
}

.ofe {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

// vue use
[v-cloak] {
  display: none;
}

//------------------------------------


#app {
  position: relative;
  height: 100%;
  padding-top: 80px;
}

.login {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  height: 60px;

  input {
    display: block;
    width: 400px;
    height: 60px;
    padding: 0 10px;
    margin: 0 auto;
    border: 1px solid #dde6e9;
    border-radius: 6px;
    font-size: 18px;
    color: #444;
  }
}


.chatroom {
  display: flex;
  width: 800px;
  height: 600px;
  margin: 0 auto 200px;
  border: 1px solid #dde6e9;

  .left {
    display: flex;
    flex-direction: column;
    width: 120px;
    border-right: 1px solid #dde6e9;
    background-color: rgb(229, 241, 246);

    .notify {
      font-size: 13px;
      height: 24px;
      line-height: 24px;
      padding: 0 10px;
      color: #ff6022;
      background-color: rgb(211, 232, 241);
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }
    .member-list {
      flex: 1;
      overflow: auto;
      li {
        font-size: 13px;
        line-height: 24px;
        padding: 0 10px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;

        &:hover {
          cursor: pointer;
          background-color: rgb(199, 228, 240);
        }
      }
    }
  }

  .right {
    flex: 1;
    display: flex;
    flex-direction: column;

    .msg-list {
      flex: 1;
      height: 100%;
      overflow: auto;
      padding: 10px 15px;
      background-color: rgb(220, 237, 245);
      > li {
        margin-bottom: 30px;
      }

      .info {
        position: absolute;
        height: 32px;
        img {
          width: 32px;
          height: 32px;
          border-radius: 50%;
        }
        span {
          display: inline-block;
          font-size: 13px;
          color: #999;
          vertical-align: top;
          line-height: 20px;
        }
      }

      .msg {
        display: inline-block;
        max-width: 80%;
        border-radius: 5px;
        padding: 10px 15px;
        margin-top: 24px;
        margin-top: 24px;
        line-height: 24px;
      }

      .other {
        position: relative;
        .msg {
          margin-left: 40px;
          background-color: rgb(205, 215, 226);
        }
        .info {
          left: 0;
          span {
            left: 40px;
          }
        }
      }

      .self {
        position: relative;
        text-align: right;
        .msg {
          margin-right: 40px;
          background-color: rgb(120, 205, 248);
        }
        .info {
          right: 0;
          span {
            right: 40px;
          }
        }
      }

    }

    .textarea {
      height: 160px;
      background-color: rgb(220, 237, 245);
      textarea {
        display: block;
        width: 100%;
        height: 108px;
        padding: 10px;
        border-top: 1px solid #c0c8c8;
        background-color: rgb(220, 237, 245);
      }
      .btns {
        height: 52px;
        padding-right: 20px;
        padding-top: 12px;
        text-align: right;
        span {
          display: inline-block;
          width: 128px;
          height: 28px;
          line-height: 28px;
          // margin-top: 6px;
          font-size: 13px;
          color: #fff;
          background-color: rgb(0, 130, 154);
          border-radius: 5px;
          text-align: center;
          cursor: pointer;
        }
      }

    }

  }
}
